package com.shuyu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shuyu.domain.ApprovalProcessNode;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ApprovalProcessNodeMapper extends BaseMapper<ApprovalProcessNode> {
    @Select("select t1.*,t2.user_name  " +
            "from tbl_approval_process_node t1 " +
            "left join sys_user t2 on t1.user_id = t2.user_id " +
            "where t1.process_id =  #{processId}")
    List<ApprovalProcessNode> getList(Integer processId);
}
